import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

// 修复setup模式下 $reset无效的问题
import { resetPlugin } from '@/utils/reset'

const pinia = createPinia()
pinia.use(persist)

// 修复setup模式下 $reset无效的问题
pinia.use(resetPlugin)

export default pinia

export * from './modules/user'
export * from './modules/chat'
export * from './modules/util'
